import { IsOptional, IsString, MinLength } from "class-validator";
import { ApiProperty } from "@nestjs/swagger";

export class CreateBankDto {
  @ApiProperty({
    description: "银行名称",
  })
  @IsString()
  @MinLength(1)
  name: string;

  @IsOptional()
  @ApiProperty({
    required: false,
    description: "银行账户",
  })
  @MinLength(1)
  @IsString()
  account?: string;
}
